package com.wecon.dianping.common;

/**
 * @author Weikang  Wang
 * @program: com.wecon.dianping.common
 * @description:
 * @date 2020/3/11 15:24
 */
public class BusinessException extends Exception {
    private CommonError commonError;

    public BusinessException(EmBusinessError emBusinessError) {
        super();
        this.commonError = new CommonError(emBusinessError);
    }

    public BusinessException(EmBusinessError emBusinessError, String errorMsg) {
        super();
        this.commonError = new CommonError(emBusinessError);
        this.commonError.setErrorMsg(errorMsg);
    }

    public CommonError getCommonError() {
        return commonError;
    }

    public void setCommonError(CommonError commonError) {
        this.commonError = commonError;
    }
}
